package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBGoodsInventory implements Serializable {
    private Integer id;

    /**
     * 物品名称
     */
    private String name;

    /**
     * 仓库
     */
    private Integer sId;

    /**
     * 累计入库数量
     */
    private Integer tInNum;

    /**
     * 累计出库数量
     */
    private Integer tOutNum;

    /**
     * 累计耗损量
     */
    private Integer tLoseNum;

    /**
     * 累计供应商退回数量
     */
    private Integer tSreturnNum;

    /**
     * 累计客户退回数量
     */
    private Integer tCreturnNum;

    /**
     * 最近入库时间
     */
    private Date lastIndate;

    /**
     * 上次库存量
     */
    private Integer lastNum;

    /**
     * 当前库存量
     */
    private Integer curNum;

    /**
     * 单位成本
     */
    private Double cost;

    /**
     * 总成本
     */
    private Double tcost;

    /**
     * 当前真实库存量 实际收货后更新
     */
    private Integer curTruenum;

    /**
     * 0-公司库; 1-代管库 sid就是cid
     */
    private Integer type;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 物品名称
     */
    public String getName() {
        return name;
    }

    /**
     * 物品名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 仓库
     */
    public Integer getsId() {
        return sId;
    }

    /**
     * 仓库
     */
    public void setsId(Integer sId) {
        this.sId = sId;
    }

    /**
     * 累计入库数量
     */
    public Integer gettInNum() {
        return tInNum;
    }

    /**
     * 累计入库数量
     */
    public void settInNum(Integer tInNum) {
        this.tInNum = tInNum;
    }

    /**
     * 累计出库数量
     */
    public Integer gettOutNum() {
        return tOutNum;
    }

    /**
     * 累计出库数量
     */
    public void settOutNum(Integer tOutNum) {
        this.tOutNum = tOutNum;
    }

    /**
     * 累计耗损量
     */
    public Integer gettLoseNum() {
        return tLoseNum;
    }

    /**
     * 累计耗损量
     */
    public void settLoseNum(Integer tLoseNum) {
        this.tLoseNum = tLoseNum;
    }

    /**
     * 累计供应商退回数量
     */
    public Integer gettSreturnNum() {
        return tSreturnNum;
    }

    /**
     * 累计供应商退回数量
     */
    public void settSreturnNum(Integer tSreturnNum) {
        this.tSreturnNum = tSreturnNum;
    }

    /**
     * 累计客户退回数量
     */
    public Integer gettCreturnNum() {
        return tCreturnNum;
    }

    /**
     * 累计客户退回数量
     */
    public void settCreturnNum(Integer tCreturnNum) {
        this.tCreturnNum = tCreturnNum;
    }

    /**
     * 最近入库时间
     */
    public Date getLastIndate() {
        return lastIndate;
    }

    /**
     * 最近入库时间
     */
    public void setLastIndate(Date lastIndate) {
        this.lastIndate = lastIndate;
    }

    /**
     * 上次库存量
     */
    public Integer getLastNum() {
        return lastNum;
    }

    /**
     * 上次库存量
     */
    public void setLastNum(Integer lastNum) {
        this.lastNum = lastNum;
    }

    /**
     * 当前库存量
     */
    public Integer getCurNum() {
        return curNum;
    }

    /**
     * 当前库存量
     */
    public void setCurNum(Integer curNum) {
        this.curNum = curNum;
    }

    /**
     * 单位成本
     */
    public Double getCost() {
        return cost;
    }

    /**
     * 单位成本
     */
    public void setCost(Double cost) {
        this.cost = cost;
    }

    /**
     * 总成本
     */
    public Double getTcost() {
        return tcost;
    }

    /**
     * 总成本
     */
    public void setTcost(Double tcost) {
        this.tcost = tcost;
    }

    /**
     * 当前真实库存量 实际收货后更新
     */
    public Integer getCurTruenum() {
        return curTruenum;
    }

    /**
     * 当前真实库存量 实际收货后更新
     */
    public void setCurTruenum(Integer curTruenum) {
        this.curTruenum = curTruenum;
    }

    /**
     * 0-公司库; 1-代管库 sid就是cid
     */
    public Integer getType() {
        return type;
    }

    /**
     * 0-公司库; 1-代管库 sid就是cid
     */
    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", sId=").append(sId);
        sb.append(", tInNum=").append(tInNum);
        sb.append(", tOutNum=").append(tOutNum);
        sb.append(", tLoseNum=").append(tLoseNum);
        sb.append(", tSreturnNum=").append(tSreturnNum);
        sb.append(", tCreturnNum=").append(tCreturnNum);
        sb.append(", lastIndate=").append(lastIndate);
        sb.append(", lastNum=").append(lastNum);
        sb.append(", curNum=").append(curNum);
        sb.append(", cost=").append(cost);
        sb.append(", tcost=").append(tcost);
        sb.append(", curTruenum=").append(curTruenum);
        sb.append(", type=").append(type);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBGoodsInventory other = (SuperBGoodsInventory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getsId() == null ? other.getsId() == null : this.getsId().equals(other.getsId()))
            && (this.gettInNum() == null ? other.gettInNum() == null : this.gettInNum().equals(other.gettInNum()))
            && (this.gettOutNum() == null ? other.gettOutNum() == null : this.gettOutNum().equals(other.gettOutNum()))
            && (this.gettLoseNum() == null ? other.gettLoseNum() == null : this.gettLoseNum().equals(other.gettLoseNum()))
            && (this.gettSreturnNum() == null ? other.gettSreturnNum() == null : this.gettSreturnNum().equals(other.gettSreturnNum()))
            && (this.gettCreturnNum() == null ? other.gettCreturnNum() == null : this.gettCreturnNum().equals(other.gettCreturnNum()))
            && (this.getLastIndate() == null ? other.getLastIndate() == null : this.getLastIndate().equals(other.getLastIndate()))
            && (this.getLastNum() == null ? other.getLastNum() == null : this.getLastNum().equals(other.getLastNum()))
            && (this.getCurNum() == null ? other.getCurNum() == null : this.getCurNum().equals(other.getCurNum()))
            && (this.getCost() == null ? other.getCost() == null : this.getCost().equals(other.getCost()))
            && (this.getTcost() == null ? other.getTcost() == null : this.getTcost().equals(other.getTcost()))
            && (this.getCurTruenum() == null ? other.getCurTruenum() == null : this.getCurTruenum().equals(other.getCurTruenum()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getsId() == null) ? 0 : getsId().hashCode());
        result = prime * result + ((gettInNum() == null) ? 0 : gettInNum().hashCode());
        result = prime * result + ((gettOutNum() == null) ? 0 : gettOutNum().hashCode());
        result = prime * result + ((gettLoseNum() == null) ? 0 : gettLoseNum().hashCode());
        result = prime * result + ((gettSreturnNum() == null) ? 0 : gettSreturnNum().hashCode());
        result = prime * result + ((gettCreturnNum() == null) ? 0 : gettCreturnNum().hashCode());
        result = prime * result + ((getLastIndate() == null) ? 0 : getLastIndate().hashCode());
        result = prime * result + ((getLastNum() == null) ? 0 : getLastNum().hashCode());
        result = prime * result + ((getCurNum() == null) ? 0 : getCurNum().hashCode());
        result = prime * result + ((getCost() == null) ? 0 : getCost().hashCode());
        result = prime * result + ((getTcost() == null) ? 0 : getTcost().hashCode());
        result = prime * result + ((getCurTruenum() == null) ? 0 : getCurTruenum().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        return result;
    }
}